package com.qdh.mapper;

import com.qdh.model.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrdersMapper {
   int countOrders(Integer productId);
   List<Orders> findAll();
   void insertOrders(Orders orders);

   void insertOrderIdAndTravellerIdd(@Param(value = "ordersId") String ordersId,
                                     @Param(value = "travellerId") Integer travellerId);
   Orders findById(Integer id);
   void updateOrders(Orders orders);
   int countOrderAndTraveller(Integer ordersId);
   void deleteOrders(Integer id);
}
